﻿package code {	import flash.display.BitmapData;	import flash.display.Bitmap;	import flash.display.MovieClip;	import flash.geom.Rectangle;	import flash.geom.Point;		public class PuzzlePiece extends MovieClip {		public var imageData:BitmapData;		public var image:Bitmap;				public function PuzzlePiece(puzzleBitmapData:BitmapData, extent:Rectangle):void {			//trace(extent);			imageData = new BitmapData(extent.width, extent.height);			imageData.copyPixels(puzzleBitmapData, extent, new Point(0,0));			image = new Bitmap(imageData);			this.addChild(image);		}				// Accessors		// Events	}}